import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { SharedModule } from '../../../shared/shared.module';
import { PageTagComponent } from './page.tag';
import { WorkAreaWeaveComponent } from './workAreaWeave.component';
import { OperaModalComponent } from './operaModal.component';
import { CalendarComponent } from './calendar.component';
import { CalendarOperaComponent } from './calendarOpera.component';
import { EquipmentModalComponent } from './equipmentModal.component';
import { TableComponent } from './table.component';

@NgModule({
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild([
      { path: 'workarea', component: PageTagComponent, data: { title: '周计划-编制' } },
      { path: 'station', component: PageTagComponent, data: { title: '周计划-审核' } },
      { path: 'seg', component: PageTagComponent, data: { title: '周计划-审批' } },
      { path: 'calendar', component: CalendarComponent, data: { title: '周计划-详情' } },
      { path: '**', redirectTo: 'workarea' }
    ])
  ],
  declarations: [WorkAreaWeaveComponent, OperaModalComponent, CalendarComponent, CalendarOperaComponent, EquipmentModalComponent, PageTagComponent, TableComponent],
  exports: [RouterModule]
})
export class WorkAreaWeaveModule { }
